#pragma once

class CRandNum : public CObject
{
	DECLARE_SERIAL(CRandNum)
public:
	CRandNum();

public:
	void Init(const int maxNum = -1, const int seedVal = -1);
	int GetRandNum() const;

	void SetMaxNum(const int maxNum) {
		ASSERT(maxNum > 0);
		m_maxNum = maxNum;
	}
private:
	int m_maxNum;
public:
	virtual void Serialize(CArchive& ar);
};

